package com.example.springboot.service;

import com.example.springboot.Mapper.TradeMapper;
import com.example.springboot.pojo.day;
import com.example.springboot.pojo.trade;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TradeService implements TradeMapper {
    @Autowired
    TradeMapper tradeMapper;

    @Override
    public List<trade> getTrade() {
        return tradeMapper.getTrade();
    }

    @Override
    public int uodateTrade(trade t) {
        return 0;
    }

    @Override
    public int addTrade(trade t) {
        return tradeMapper.addTrade(t);
    }

    @Override
    public int delete(int trid) {
        return tradeMapper.delete(trid);
    }

    @Override
    public int sumTrade() {
        return tradeMapper.sumTrade();
    }

    @Override
    public List<trade> countxse() {
        return tradeMapper.countxse();
    }

    @Override
    public List<trade> countyxse() {
        return tradeMapper.countyxse();
    }

    @Override
    public List<trade> countyxsephb() {
        return tradeMapper.countyxsephb();
    }

    @Override
    public List<trade> pagesearch(int pageNo, int pageSize) {
        return tradeMapper.pagesearch(pageNo, pageSize);
    }
}
